/* Heart Rate Monitor Styles */

/* Hero Section */
.heartrate-hero {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 25%, #feb2b2 50%, #f56565 75%, #e53e3e 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.heartrate-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heartrate-pattern" width="30" height="20" patternUnits="userSpaceOnUse"><path d="M5 10 Q10 5 15 10 Q20 15 25 10" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><circle cx="8" cy="8" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="22" cy="12" r="1.5" fill="rgba(255,255,255,0.08)"/><path d="M0 10 L5 10 M25 10 L30 10" stroke="rgba(255,255,255,0.06)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23heartrate-pattern)"/></svg>');
    opacity: 0.7;
}

.heartrate-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.heartrate-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.heartrate-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heartrate-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.heartrate-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.heartrate-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.heartrate-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Heart Rate Monitor Section */
.heartrate-monitor {
    padding: 80px 0;
    background: #f8fafc;
}

/* Tabs */
.monitor-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto 40px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.tab-btn.active {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
    color: #e53e3e;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculator Tab */
.calculator-header,
.zones-header,
.tracker-header,
.insights-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2,
.zones-header h2,
.tracker-header h2,
.insights-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-header h2 i,
.zones-header h2 i,
.tracker-header h2 i,
.insights-header h2 i {
    color: #e53e3e;
}

.calculator-header p,
.zones-header p,
.tracker-header p,
.insights-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Input Section */
.input-section {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.input-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-section h3 i {
    color: #e53e3e;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.calculate-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3);
}

.clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    display: none;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.results-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.hr-zones-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.hr-zone-result {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.hr-zone-result:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hr-zone-result.zone-1 { border-left: 4px solid #38a169; }
.hr-zone-result.zone-2 { border-left: 4px solid #3182ce; }
.hr-zone-result.zone-3 { border-left: 4px solid #d69e2e; }
.hr-zone-result.zone-4 { border-left: 4px solid #dd6b20; }
.hr-zone-result.zone-5 { border-left: 4px solid #e53e3e; }

.zone-info {
    display: flex;
    flex-direction: column;
}

.zone-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.zone-purpose {
    font-size: 0.85rem;
    color: #718096;
}

.zone-range {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e53e3e;
}

.hr-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.hr-summary h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-stat {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

/* Training Zones Tab */
.zones-grid {
    display: grid;
    gap: 25px;
}

.zone-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.zone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.zone-card.zone-1 { border-left-color: #38a169; }
.zone-card.zone-2 { border-left-color: #3182ce; }
.zone-card.zone-3 { border-left-color: #d69e2e; }
.zone-card.zone-4 { border-left-color: #dd6b20; }
.zone-card.zone-5 { border-left-color: #e53e3e; }

.zone-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.zone-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.zone-card.zone-1 .zone-icon { background: linear-gradient(135deg, #38a169, #48bb78); }
.zone-card.zone-2 .zone-icon { background: linear-gradient(135deg, #3182ce, #4299e1); }
.zone-card.zone-3 .zone-icon { background: linear-gradient(135deg, #d69e2e, #ecc94b); }
.zone-card.zone-4 .zone-icon { background: linear-gradient(135deg, #dd6b20, #f6ad55); }
.zone-card.zone-5 .zone-icon { background: linear-gradient(135deg, #e53e3e, #fc8181); }

.zone-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.zone-range {
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
}

.zone-description p {
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.6;
}

.zone-description strong {
    color: #2d3748;
}

/* HR Tracker Tab */
.tracker-content {
    display: grid;
    gap: 40px;
}

.current-hr-display {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.hr-display-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hr-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hr-input-section input {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    width: 200px;
    transition: all 0.3s ease;
}

.hr-input-section input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.hr-unit {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 600;
}

.update-hr-btn {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-hr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.hr-zone-indicator {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.hr-zone-indicator.active {
    border-style: solid;
    background: white;
}

.zone-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.zone-description {
    font-size: 1rem;
    color: #718096;
}

/* HR History */
.hr-history {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.hr-history h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-history h3 i {
    color: #e53e3e;
}

.history-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.history-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.history-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    transform: translateY(-2px);
}

.hr-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-history i {
    font-size: 2.5rem;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.hr-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.hr-history-item:hover {
    background: #f7fafc;
}

.hr-history-item:last-child {
    border-bottom: none;
}

.hr-time {
    font-size: 0.9rem;
    color: #718096;
}

.hr-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.hr-zone-label {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* HR Tips */
.hr-tips {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.hr-tips h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-tips h3 i {
    color: #e53e3e;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-card i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 15px;
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
}

/* Health Insights Tab */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.insight-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e53e3e;
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.insight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.insight-ranges {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.range-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.range-item.excellent {
    background: #c6f6d5;
    color: #276749;
}

.range-item.good {
    background: #bee3f8;
    color: #2c5282;
}

.range-item.average {
    background: #fbd38d;
    color: #b7791f;
}

.range-item.poor {
    background: #fed7d7;
    color: #c53030;
}

.range-label {
    font-weight: 600;
}

.range-value {
    font-weight: 500;
}

.hrv-info p,
.adaptation-info p,
.insight-card > p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.adaptation-item {
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #e53e3e;
    color: #4a5568;
    line-height: 1.5;
}

.warning-info {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fed7d7;
    border-radius: 8px;
    color: #742a2a;
    font-size: 0.9rem;
}

.warning-item i {
    color: #e53e3e;
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #e53e3e;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .heartrate-hero {
        padding: 100px 0 60px;
    }
    
    .heartrate-hero-title {
        font-size: 2.5rem;
    }
    
    .heartrate-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .monitor-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        flex: none;
        min-width: 140px;
        font-size: 0.85rem;
    }
    
    .calculator-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .heartrate-hero-title {
        font-size: 2rem;
    }
    
    .heartrate-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .monitor-tabs {
        padding: 5px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
        min-width: 110px;
    }
    
    .calculator-card,
    .input-section,
    .current-hr-display,
    .hr-history,
    .hr-tips {
        padding: 20px 15px;
    }
    
    .hr-input-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .hr-input-section input {
        width: 100%;
        max-width: 250px;
    }
    
    .history-controls {
        flex-direction: column;
    }
    
    .hr-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.input-group input.error,
.input-group select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
