 :root {
            --primary-color: #FF8C00; /* Orange */
            --secondary-color: #0056A6; /* Complementary blue */
            --light-bg: #FFF9F0;
            --text-dark: #333333;
            --text-light: #666666;
            --border-color: #E0E0E0;
            --outstanding-color: #E74C3C;
            --cleared-color: #27AE60;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--text-dark);
            line-height: 1.6;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            padding: 20px 0;
            margin-bottom: 30px;
            border-bottom: 2px solid var(--primary-color);
        }
        
        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .logo-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
        }
        
        .academy-name {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .academy-motto {
            font-size: 1.2rem;
            color: var(--secondary-color);
            font-style: italic;
            margin-top: 5px;
        }
        
        .app-title {
            font-size: 1.8rem;
            color: var(--secondary-color);
            margin-top: 10px;
        }
        
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        @media (min-width: 768px) {
            .main-content {
                flex-direction: row;
            }
        }
        
        .control-panel {
            flex: 1;
            background-color: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow);
        }
        
        .certificate-display {
            flex: 2;
            background-color: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .print-area {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .screen-only {
            display: block;
        }
        
        .section-title {
            font-size: 1.5rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            color: var(--primary-color);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        input, select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
        }
        
        .date-input {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .date-input input {
            flex: 1;
        }
        
        .today-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        .today-btn:hover {
            background-color: #e67e00;
        }
        
        .student-list {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            max-height: 300px;
            overflow-y: auto;
            margin-top: 10px;
        }
        
        .student-item {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .student-item:hover {
            background-color: rgba(255, 140, 0, 0.05);
        }
        
        .student-item:last-child {
            border-bottom: none;
        }
        
        .student-name {
            font-weight: 500;
        }
        
        .status-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .status-outstanding {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--outstanding-color);
        }
        
        .status-cleared {
            background-color: rgba(39, 174, 96, 0.1);
            color: var(--cleared-color);
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }
        
        .btn {
            padding: 14px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-size: 1rem;
            transition: all 0.3s;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #e67e00;
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background-color: var(--secondary-color);
            color: white;
        }
        
        .btn-secondary:hover {
            background-color: #004a8f;
            transform: translateY(-2px);
        }
        
        .certificate {
            width: 100%;
            max-width: 800px;
            background-color: var(--light-bg);
            border: 20px solid transparent;
            border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
            padding: 40px;
            text-align: center;
            box-shadow: var(--shadow);
            position: relative;
            margin-bottom: 30px;
        }
        
        .certificate-header {
            margin-bottom: 30px;
        }
        
        .certificate-title {
            font-size: 2.3rem;
            color: var(--secondary-color);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 10px;
        }
        
        .certificate-subtitle {
            font-size: 1.2rem;
            color: var(--primary-color);
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .certificate-body {
            margin: 40px 0;
        }
        
        .certificate-text {
            font-size: 1.2rem;
            margin-bottom: 25px;
            line-height: 1.8;
        }
        
        .recipient-name {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin: 25px 0;
            padding: 15px;
            border-top: 2px solid var(--border-color);
            border-bottom: 2px solid var(--border-color);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .certificate-footer {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 2px solid var(--border-color);
        }
        
        .signature-section {
            text-align: center;
            flex: 1;
        }
        img{
            width: 150px;
            margin-bottom: -10px;
        }
        .signature-line {
            height: 1px;
            background-color: var(--text-dark);
            width: 200px;
            margin: 0 auto 10px;
        }
        
        .signature-name {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--secondary-color);
            margin-top: 5px;
        }
        
        .signature-title {
            color: var(--text-light);
            font-size: 0.9rem;
        }
        
        .date-section {
            text-align: center;
            flex: 1;
        }
        
        .date-display {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--secondary-color);
            margin-top: 10px;
        }
        
        .certificate-seal {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.8rem;
            transform: rotate(15deg);
        }
        
        .status-display {
            font-size: 1.4rem;
            font-weight: 700;
            margin: 20px 0;
            padding: 10px 30px;
            border-radius: 50px;
            display: inline-block;
        }
        
        .print-btn {
            margin-top: 20px;
            background-color: var(--secondary-color);
            color: white;
            padding: 12px 30px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
            transition: background-color 0.3s;
        }
        
        .print-btn:hover {
            background-color: #004a8f;
        }
        
        .annotation {
            background-color: #FFF9E6;
            border-left: 4px solid var(--primary-color);
            padding: 15px;
            margin-top: 25px;
            border-radius: 0 8px 8px 0;
            font-size: 0.9rem;
        }
        
        .annotation-title {
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            color: var(--text-light);
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            .academy-name {
                font-size: 2rem;
            }
            
            .certificate {
                padding: 20px;
                border-width: 10px;
            }
            
            .certificate-title {
                font-size: 1.8rem;
            }
            
            .recipient-name {
                font-size: 1.6rem;
            }
            
            .certificate-footer {
                flex-direction: column;
                gap: 30px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .certificate-seal {
                width: 70px;
                height: 70px;
                font-size: 0.9rem;
            }
        }
        
        @media print {
            @page {
                size: auto;
                margin: 0.5in;
            }

            body {
                background: white;
                padding: 0;
            }

            .container,
            .main-content,
            .certificate-display,
            .print-area {
                display: block;
                width: 100%;
                max-width: none;
                margin: 0;
                padding: 0;
                box-shadow: none;
                background: transparent;
            }

            header,
            .control-panel,
            .screen-only,
            footer {
                display: none !important;
            }
            
            .certificate {
                max-width: none;
                border: 12px solid var(--primary-color);
                box-shadow: none;
                margin: 0;
                padding: 30px;
                break-inside: avoid;
            }
        }
