/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f0f4f8;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 0.9rem;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: calc(100vh - 150px);
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #4a90e2;
    font-size: 1.1rem;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4a90e2;
}

.stat-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Appointments */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
}

.appointment-info .time {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.appointment-info .patient {
    font-weight: 500;
    margin: 5px 0;
}

.appointment-info .procedure {
    color: #666;
    font-size: 0.9rem;
}

/* Status Badges */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-agendada {
    background: #fff3cd;
    color: #856404;
}

.status-confirmada {
    background: #d4edda;
    color: #155724;
}

.status-realizada {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelada {
    background: #f8d7da;
    color: #721c24;
}

/* Next Appointments */
.next-appointments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-appointment {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.next-appointment:last-child {
    border-bottom: none;
}

.next-appointment .date {
    background: #4a90e2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.next-appointment .info {
    flex-grow: 1;
}

.next-appointment .patient {
    font-weight: 500;
    margin-bottom: 5px;
}

.next-appointment .time {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f4f8;
    color: #4a90e2;
    border: 2px solid #4a90e2;
}

.btn-secondary:hover {
    background: #e3f2fd;
}

.btn-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Navigation */
.app-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-item.active {
    color: #4a90e2;
}

.nav-item:hover {
    color: #4a90e2;
}

.nav-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .app-header h1 {
        font-size: 1rem;
    }
}