/* App-specific styles for Dog Training Management System */

/* Login Page */
.app-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #aa0000 0%, #770000 100%);
}

.app-login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
}

.app-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.app-login-logo img {
    max-width: 200px;
    height: auto;
}

.app-login-title {
    text-align: center;
    color: #aa0000;
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

/* App Sidebar Navigation */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #2c3e50;
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s;
}

.app-sidebar-header {
    padding: 1.5rem 1rem;
    background: #aa0000;
    text-align: center;
}

.app-sidebar-header img {
    max-width: 50px;
    margin-bottom: 0.5rem;
}

.app-sidebar-nav {
    padding: 1rem 0;
}

.app-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.app-sidebar-nav a:hover,
.app-sidebar-nav a.active {
    background: #34495e;
    color: white;
    border-left: 4px solid #aa0000;
}

.app-sidebar-nav i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Main Content Area */
.app-main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #ecf0f1;
}

.app-topbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-content {
    padding: 2rem;
}

/* Cards */
.app-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.app-card-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

/* Buttons */
.btn-app-primary {
    background: #aa0000;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-app-primary:hover {
    background: #880000;
    color: white;
}

.btn-app-secondary {
    background: #34495e;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-app-secondary:hover {
    background: #2c3e50;
    color: white;
}

/* Tables */
.app-table {
    width: 100%;
    background: white;
}

.app-table th {
    background: #aa0000;
    color: white;
    padding: 1rem;
    text-align: left;
}

.app-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.app-table tr:hover {
    background: #f8f9fa;
}

/* Forms */
.app-form-group {
    margin-bottom: 1.5rem;
}

.app-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.app-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.app-form-control:focus {
    outline: none;
    border-color: #aa0000;
    box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.1);
}

/* Badges */
.app-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.app-badge-success {
    background-color: #28a745;
    color: white;
}

.app-badge-danger {
    background-color: #dc3545;
    color: white;
}

.app-badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.app-badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Stats Cards */
.app-stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-stat-icon {
    font-size: 3rem;
    color: #aa0000;
    opacity: 0.3;
}

.app-stat-content {
    text-align: right;
}

.app-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.app-stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Alerts */
.app-alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.app-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.app-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.app-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.app-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.active {
        transform: translateX(0);
    }
    
    .app-main-content {
        margin-left: 0;
    }
    
    .app-topbar {
        padding: 1rem;
    }
    
    .app-content {
        padding: 1rem;
    }
    
    .app-login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* Mobile Menu Toggle */
.app-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

@media (max-width: 768px) {
    .app-mobile-toggle {
        display: block;
    }
}

/* Checkbox Disclaimer List */
.app-disclaimer-list {
    list-style: none;
    padding: 0;
}

.app-disclaimer-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-left: 4px solid #aa0000;
    border-radius: 4px;
}

.app-disclaimer-list input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* Attendance Register */
.attendance-table td input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

/* Class Grid */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.class-card-icon {
    font-size: 3rem;
    color: #aa0000;
    margin-bottom: 1rem;
}

.class-card-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.class-card-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}
