/* Registration Form */
.cim-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.cim-registration-form h3 {
    color: #0073aa;
    margin-bottom: 20px;
    text-align: center;
}

/* Student Dashboard */
.cim-student-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-header h2 {
    color: #0073aa;
    margin: 0;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
}

.certificate-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.cert-number {
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 10px 0;
}

.issue-date {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.certificate-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.view-certificate {
    background: #0073aa;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.verification-count {
    font-size: 12px;
    color: #666;
}

/* Verification Form */
.cim-verification-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.verification-header {
    text-align: center;
    margin-bottom: 30px;
}

.verification-header h3 {
    color: #0073aa;
    margin-bottom: 10px;
}

.verification-input-form {
    margin-bottom: 30px;
}

/* Courses Grid */
.cim-courses-list {
    margin: 40px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #0073aa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.course-card h4 {
    color: #0073aa;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.course-duration, .course-fee {
    font-weight: bold;
    margin: 8px 0;
    color: #333;
}

.course-description {
    color: #666;
    line-height: 1.5;
    margin: 15px 0;
}

.enroll-btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.enroll-btn:hover {
    background: #218838;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Buttons */
.submit-btn, .verify-btn {
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover, .verify-btn:hover {
    background: #005a87;
}

/* Login Required */
.cim-login-required {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cim-login-required a {
    color: #0073aa;
    text-decoration: none;
}

.cim-login-required a:hover {
    text-decoration: underline;
}

/* Error Messages */
.cim-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificates-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cim-registration-form,
    .cim-verification-form {
        padding: 20px;
        margin: 10px;
    }
    
    .certificate-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}