/* Dashboard Specific Styles */

/* Dashboard container */
.dashboard-container {
    padding: 30px 20px;
}

/* Dashboard header */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.dashboard-header p {
    color: #7f8c8d;
    font-size: 18px;
}

/* Dashboard stats */
.dashboard-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 36px;
    margin-right: 20px;
    color: #4f77a3;
}

.stat-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 18px;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 20px;
    font-weight: bold;
}

/* Dashboard content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upload section */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #4f77a3;
    background-color: rgba(79, 119, 163, 0.05);
}

.upload-area.dragover {
    border-color: #4f77a3;
    background-color: rgba(79, 119, 163, 0.1);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #4f77a3;
}

.upload-area p {
    margin-bottom: 15px;
    color: #666;
}

.upload-info {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* Upload progress */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #4f77a3;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Upload error */
.upload-error {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* PDF Preview section */
.pdf-container {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.pdf-container canvas {
    width: 100%;
    height: 100%;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-info {
    font-size: 16px;
    color: #666;
}

/* Signature section */
.signature-status {
    text-align: center;
    padding: 30px;
}

.status-icon {
    font-size: 50px;
    margin-bottom: 15px;
    color: #4f77a3;
}

/* PIN entry */
.pin-entry {
    text-align: center;
    padding: 20px;
}

.pin-container {
    max-width: 300px;
    margin: 0 auto;
}

#pin-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 20px;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pin-key {
    padding: 15px;
    font-size: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-key:hover {
    background-color: #e9ecef;
}

.pin-key:active {
    background-color: #dee2e6;
    transform: translateY(2px);
}

.pin-clear {
    background-color: #f8d7da;
    color: #721c24;
}

.pin-submit {
    background-color: #d4edda;
    color: #155724;
}

/* Signature progress */
.signature-progress {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4f77a3;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Signature result */
.signature-result {
    text-align: center;
    padding: 30px;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.result-icon.success {
    background-color: #d4edda;
    color: #155724;
}

.result-icon.error {
    background-color: #f8d7da;
    color: #721c24;
}

.result-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Validation section */
.validation-result {
    text-align: center;
    padding: 20px;
}

.validation-details {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

.detail-value {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .pdf-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-container {
        height: 400px;
    }
}
