/* Certificate Parse Styles */

/* Form Control Styling */
.cert-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.cert-form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

textarea.cert-form-control {
    min-height: 120px;
}

.cert-form-control:focus {
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.cert-form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.file-upload-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 5px;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: #868e96;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-selected-info {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #e7f5ff;
    border-radius: 6px;
    color: #004085;
    font-weight: 500;
}

/* Card Improvements */
.utool-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.utool-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: none;
}

.utool-card-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.utool-card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
}

.utool-card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
}

.utool-card-body {
    padding: 30px;
}

/* Button Styling */
.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary-custom:active {
    transform: translateY(1px);
}

/* Result Table Styling */
.cert-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cert-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
    width: 30%;
    vertical-align: middle;
}

.cert-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    vertical-align: middle;
    word-break: break-all;
}

.cert-table tr:last-child td, 
.cert-table tr:last-child th {
    border-bottom: none;
}

.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .utool-card-body {
        padding: 20px;
    }
    
    .cert-table th, .cert-table td {
        display: block;
        width: 100%;
    }
    
    .cert-table th {
        background-color: transparent;
        border-bottom: none;
        padding-bottom: 5px;
        color: #667eea;
    }
    
    .cert-table td {
        padding-top: 0;
        border-bottom: 1px solid #e9ecef;
    }
}
