/* Rojgar Card Pro - Beautiful Frontend Styles */
:root {
    --primary-color: #006400;
    --secondary-color: #FFD700;
    --accent-color: #228B22;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 100, 0, 0.15);
    --transition: all 0.3s ease;
}

.rojgar-card-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 100, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.rojgar-card-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.rojgar-form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    position: relative;
}

.rojgar-form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.1);
}

.rojgar-form-section h3 {
    color: var(--primary-color);
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.rojgar-form-section h3::before {
    content: '✓';
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8em;
}

.rojgar-form-group {
    margin-bottom: 25px;
    position: relative;
}

.rojgar-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1em;
    transition: var(--transition);
}

.rojgar-form-group input,
.rojgar-form-group select,
.rojgar-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: var(--transition);
    background: #fff;
    box-sizing: border-box;
}

.rojgar-form-group input:focus,
.rojgar-form-group select:focus,
.rojgar-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
    transform: translateY(-1px);
}

.rojgar-form-group input:focus + label,
.rojgar-form-group textarea:focus + label {
    color: var(--primary-color);
}

.rojgar-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.rojgar-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.rojgar-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.rojgar-submit-btn:hover::before {
    left: 100%;
}

.rojgar-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 100, 0, 0.4);
}

.rojgar-submit-btn:active {
    transform: translateY(-1px);
}

.rojgar-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rojgar-submit-btn:disabled:hover {
    transform: none;
}

.rojgar-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--success-color);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease;
}

.rojgar-success::before {
    content: '✓';
    background: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rojgar-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--danger-color);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease;
}

.rojgar-error::before {
    content: '!';
    background: var(--danger-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rojgar-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--warning-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.rojgar-form-note {
    background: linear-gradient(135deg, #e7f3ff, #d1ecf1);
    border-left: 4px solid var(--info-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.rojgar-form-note::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    opacity: 0.1;
}

.rojgar-form-note p {
    margin: 0;
    color: var(--dark-color);
    font-size: 1em;
    line-height: 1.6;
}

.rojgar-search-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.rojgar-search-form {
    margin-bottom: 30px;
}

.rojgar-search-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

.rojgar-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rojgar-status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffd700;
}

.rojgar-status-approved {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #28a745;
}

.rojgar-status-rejected {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #dc3545;
}

.rojgar-card-admin-view {
    background: white;
    border: 1px solid #e9ecef;
    padding: 25px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.rojgar-card-admin-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.1);
}

.rojgar-card-admin-view h4 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.3em;
}

.rojgar-card-admin-view table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rojgar-card-admin-view table tr {
    border-bottom: 1px solid #e9ecef;
}

.rojgar-card-admin-view table tr:last-child {
    border-bottom: none;
}

.rojgar-card-admin-view table td {
    padding: 12px 8px;
    vertical-align: top;
}

.rojgar-card-admin-view table td:first-child {
    font-weight: 600;
    color: var(--dark-color);
    width: 30%;
}

/* Card Preview Styles */
.rojgar-card-container {
    width: 85.6mm;
    height: 53.98mm;
    perspective: 1000px;
    margin: 30px auto;
    cursor: pointer;
    transition: var(--transition);
}

.rojgar-card-container:hover {
    transform: scale(1.02);
}

.rojgar-card-front,
.rojgar-card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFEC8B);
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #006400;
    position: relative;
    color: #006400;
    backface-visibility: hidden;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.rojgar-card-back {
    transform: rotateY(180deg);
    margin-top: 30px;
}

.rojgar-card-container.flipped .rojgar-card-front {
    transform: rotateY(180deg);
}

.rojgar-card-container.flipped .rojgar-card-back {
    transform: rotateY(0);
}

.rojgar-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg, #006400, #228B22);
    border-radius: 13px 13px 0 0;
}

.rojgar-card-front h3 {
    color: #006400;
    text-align: center;
    margin: 25px 0 20px 0;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.rojgar-card-holder {
    margin: 15px 0;
}

.rojgar-card-holder-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.rojgar-card-holder-name {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rojgar-card-number {
    margin: 15px 0;
}

.rojgar-card-number-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.rojgar-card-number-value {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.rojgar-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.rojgar-card-validity .label {
    font-size: 8px;
    opacity: 0.8;
}

.rojgar-card-validity .value {
    font-size: 12px;
    font-weight: bold;
}

.rojgar-verified-batch {
    background: #006400;
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.rojgar-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #006400;
    border-radius: 13px 13px 0 0;
}

.rojgar-card-back h4 {
    color: #006400;
    text-align: center;
    margin: 40px 0 15px 0;
    font-size: 14px;
    font-weight: bold;
}

.rojgar-card-back-content {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 40px;
}

.rojgar-card-back-id {
    text-align: center;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 15px;
    border-top: 1px solid #006400;
    padding-top: 10px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 100, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0);
    }
}

.rojgar-pulse {
    animation: pulse 2s infinite;
}

/* Loading Animation */
.rojgar-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rojgar-card-form-wrapper,
    .rojgar-search-wrapper {
        margin: 20px;
        padding: 20px;
    }
    
    .rojgar-form-section {
        padding: 20px;
    }
    
    .rojgar-card-container {
        transform: scale(0.9);
    }
    
    .rojgar-card-container:hover {
        transform: scale(0.92);
    }
}

@media (max-width: 480px) {
    .rojgar-card-form-wrapper,
    .rojgar-search-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .rojgar-form-section {
        padding: 15px;
    }
    
    .rojgar-card-container {
        transform: scale(0.8);
    }
}

/* Print Styles */
@media print {
    .rojgar-card-container {
        transform: scale(1);
        margin: 0;
        box-shadow: none;
    }
    
    .rojgar-card-front,
    .rojgar-card-back {
        box-shadow: none;
        border: 2px solid #000;
    }
}