/* Digital Service - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    color: #333;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Main Content */
main {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Services Section */
.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.15rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.card-top {
    background: #f8f8f8;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-bottom {
    background: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-bottom .btn-add-cart {
    margin-top: auto;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .product-image img {
    transform: scale(1.1);
}

.product-icon {
    font-size: 4rem;
    color: #999;
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
}

.product-name {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.star-rating {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 15px;
}

.btn-add-cart {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Form Section */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
}

.step.completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Service Summary */
.service-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-summary h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-summary-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.service-summary-details {
    flex: 1;
}

.service-summary-details h4 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-full-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-label, .file-label {
    color: #999;
    font-weight: 500;
    font-size: 0.9rem;
}

.file-value {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.service-summary-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.service-summary-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Order Form */
.order-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Error Messages */
.error-message {
    background: #fee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.error-message p {
    color: #c62828;
    margin: 0;
}

/* Success Messages */
.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success-message p {
    color: #2e7d32;
    margin: 0;
}

/* Payment Summary */
.payment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-summary-thumbnail {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-summary-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.qr-code {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    max-width: 200px;
    height: auto;
}

.qr-instruction {
    margin-top: 15px;
    color: #666;
}

.qr-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-apps {
    flex: 0 0 auto;
    min-width: 280px;
}

.btn-pay-apps {
    width: 100%;
    padding: 18px 24px;
    background: #333;
    color: white;
    border: 2px solid #333;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-pay-apps:hover {
    background: #555;
}

.btn-pay-apps svg {
    transition: transform 0.3s ease;
}

.btn-pay-apps svg.open {
    transform: rotate(180deg);
}

.payment-apps-list {
    display: none;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-apps-list.show {
    display: block;
}

.payment-app-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.payment-app-link:last-child {
    border-bottom: none;
}

.payment-app-link:hover {
    background: #f5f5f5;
}

.app-icon {
    font-size: 1.2rem;
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: white;
}

/* Order Details */
.order-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.order-details h3 {
    margin-bottom: 25px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.5rem;
}

.order-details-thumbnail {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-details-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-row strong {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-row .price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Status Badges */
.status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.approved {
    background: #d4edda;
    color: #155724;
}

.status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Download Section */
.download-section {
    text-align: center;
    background: #e8f5e9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.download-section h3 {
    margin-bottom: 15px;
    color: #2e7d32;
}

/* Pending Section */
.pending-section {
    text-align: center;
    background: #fff3cd;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pending-section h3 {
    margin-bottom: 15px;
    color: #856404;
}

/* Rejected Section */
.rejected-section {
    text-align: center;
    background: #f8d7da;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.rejected-section h3 {
    margin-bottom: 15px;
    color: #721c24;
}

/* Track Form */
.track-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

/* Orders List */
.orders-list {
    margin-top: 30px;
}

.orders-list h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.orders-list .order-details {
    margin-bottom: 20px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Admin Section */
.admin-section {
    max-width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #667eea;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* Orders Table */
.orders-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.status-form {
    display: inline;
}

.status-form select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.status-form select:focus {
    outline: none;
    border-color: #667eea;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Login Section */
.login-section {
    max-width: 400px;
    margin: 0 auto;
}

.login-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Info Section */
.info-section {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #2196f3;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #1976d2;
}

.info-section p {
    margin-bottom: 15px;
    color: #333;
}

.info-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-section li {
    margin-bottom: 10px;
    color: #333;
}

.info-section code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .card-top {
        height: 180px;
    }
    
    .card-bottom {
        padding: 20px;
    }
    
    .service-summary-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-summary-thumbnail {
        width: 150px;
        height: 150px;
    }
    
    .service-summary-details h4 {
        font-size: 1.2rem;
    }
    
    .service-full-description {
        font-size: 0.9rem;
    }
    
    .qr-content {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-apps {
        width: 100%;
        min-width: auto;
    }
    
    .btn-pay-apps {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .btn-add-cart {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .orders-table {
        font-size: 0.9rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
}
