:root {
    /* Premium Pink Color Palette */
    --primary-color: #9d174d; /* Deep Pink (Premium) */
    --secondary-color: #db2777; /* Vibrant Pink */
    --accent-color: #f472b6; /* Soft Pink Accent */
    --bg-color: #fdf2f8; /* Very Light Pink Background */
    --surface-color: #ffffff;
    --text-main: #4a044e; /* Dark Purple-Pink for text */
    --text-muted: #831843;
    --danger-color: #e11d48;
    --success-color: #10b981;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-gold: 0 4px 15px rgba(201, 162, 99, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Utilities */
.hidden { display: none !important; }
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

/* Typography & Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}
.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Layout */
#app { width: 100vw; height: 100vh; overflow: hidden; }
.screen { width: 100%; height: 100%; }

/* Login Screen */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4365 100%);
}
.login-card {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-header h2 { margin: 15px 0 5px; color: var(--primary-color); }
.login-header p { color: var(--text-muted); margin-bottom: 25px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 99, 0.2);
}
#login-form button { width: 100%; padding: 12px; font-size: 16px; margin-top: 10px; }
.login-hint { font-size: 12px; color: var(--text-muted); margin-top: 15px; }

/* Main Screen */
#main-screen { display: flex; }

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}
.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { color: var(--accent-color); font-size: 22px; margin-bottom: 5px; }
.sidebar-header p { font-size: 14px; opacity: 0.8; }
.nav-links { flex: 1; list-style: none; padding: 20px 0; }
.nav-links li a {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.nav-links li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding-left: 30px;
}
.nav-links li a.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer button { width: 100%; border-color: rgba(255,255,255,0.3); color: #fff; }
.sidebar-footer button:hover { background: rgba(255,255,255,0.1); }

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    overflow-y: auto;
}
.topbar {
    background: var(--surface-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 5;
}
.topbar h1 { margin: 0; font-size: 24px; }
.time-display { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.content-section { padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%; animation: fadeIn 0.4s ease; }

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card h3 { font-size: 16px; color: var(--text-muted); margin-bottom: 10px; font-family: 'Inter', sans-serif;}
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--primary-color); }

/* Data Tables & Lists */
.card-section {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.card-section h3 { margin-bottom: 20px; font-size: 20px; border-bottom: 2px solid var(--bg-color); padding-bottom: 10px;}

.schedule-list { list-style: none; }
.schedule-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    align-items: center;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
    font-weight: 600;
    color: var(--secondary-color);
    width: 100px;
    flex-shrink: 0;
}
.schedule-detail { flex: 1; }
.schedule-detail p { margin: 0; }
.schedule-detail small { color: var(--text-muted); }

/* Dog Tabs */
.dog-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fbcfe8;
    padding-bottom: 10px;
    overflow-x: auto;
}
.dog-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}
.dog-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(251, 207, 232, 0.3);
}
.dog-tab-btn.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.2);
}

/* Dog Profiles */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.dog-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.dog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}
.dog-info { padding: 20px; }
.dog-info h3 { margin-bottom: 5px; font-size: 22px; }
.dog-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.dog-age { 
    display: inline-block;
    padding: 5px 12px;
    background: rgba(201, 162, 99, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}
.health-status { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px;}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-good { background: var(--success-color); }
.status-warning { background: var(--accent-color); }

/* Detailed Dog Profile */
.dog-image-large {
    width: 350px;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
@media (max-width: 768px) {
    .dog-image-large { width: 100%; height: 300px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .dog-card { flex-direction: column !important; }
}
.dog-full-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #fbcfe8;
}
.detail-section h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--secondary-color);
    font-family: 'Inter', sans-serif;
}
.detail-section p { font-size: 14px; margin-bottom: 5px; }
.bullet-list { list-style-type: disc; margin-left: 20px; font-size: 14px; color: var(--text-main); }
.bullet-list li { margin-bottom: 4px; }

/* Caretakers Grid */
.caretakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.caretaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(253, 242, 248, 0.5);
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid #fbcfe8;
    transition: var(--transition);
}
.caretaker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.caretaker-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 10px;
    border: 2px solid var(--secondary-color);
}
.caretaker-info strong { font-size: 13px; color: var(--primary-color); line-height: 1.3; display: block; margin-bottom: 3px; }
.caretaker-info small { font-size: 11px; color: var(--text-muted); }

/* Task Progress Tracking (Kanban Board) */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}
.task-column {
    background: #fdf2f8; /* very light pink */
    border-radius: var(--radius-md);
    padding: 15px;
    border-top: 4px solid var(--primary-color);
}
.task-column h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-card {
    background: var(--surface-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--secondary-color);
    position: relative;
    transition: var(--transition);
}
.task-card:hover {
    box-shadow: var(--shadow-md);
}
.task-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
}
.task-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.task-meta {
    font-size: 10px;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}
.task-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.task-form-group {
    margin-bottom: 15px;
}
.task-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .task-board {
        grid-template-columns: 1fr;
    }
}

/* Admin Panel */
.admin-form { display: grid; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row > * { flex: 1; }

/* Calendar UI */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.cal-day-card {
    background: var(--surface-color);
    border: 1px solid #fbcfe8;
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.cal-day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cal-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.cal-day-num { font-size: 28px; font-weight: 700; color: var(--primary-color); line-height: 1; font-family: 'Playfair Display', serif;}
.cal-day-name { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cal-shift-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
}
.cal-shift1 { background: var(--secondary-color); color: white; }
.cal-shift2 { background: var(--primary-color); color: white; }
.cal-activity { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.cal-icon-wrap {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.cal-act-text { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-main); }
.cal-act-time { font-size: 11px; font-weight: 700; color: var(--secondary-color); margin-bottom: 2px;}
.cal-act-loc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cal-empty { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 5px;}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}


/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #main-screen {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .sidebar-header {
        padding: 15px 20px;
        text-align: center;
    }
    .nav-links {
        display: flex;
        overflow-x: auto;
        padding: 0;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links li {
        flex: 0 0 auto;
    }
    .nav-links li a {
        padding: 15px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 14px;
    }
    .nav-links li a:hover {
        padding-left: 20px;
        background: rgba(255,255,255,0.05);
    }
    .nav-links li a.active {
        border-left: none;
        border-bottom-color: var(--accent-color);
        background: rgba(255,255,255,0.1);
    }
    .sidebar-footer {
        padding: 15px;
    }
    
    .topbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .topbar h1 {
        font-size: 20px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .dogs-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}



/* Tablet Responsive Adjustments (iPad & similar) */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 220px; /* Reduce sidebar width */
    }
    
    .content-section {
        padding: 25px; /* Reduce padding to give more space */
    }
    
    .topbar {
        padding: 15px 25px;
    }

    /* Kanban board scrolling */
    .task-board {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }
    
    .task-column {
        flex: 0 0 320px;
        scroll-snap-align: start;
    }

    /* Dog profile details */
    .dog-full-details {
        grid-template-columns: 1fr; /* Stack detailed info nicely */
    }
}

