/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    color: #e94560;
    margin-bottom: 25px;
    font-weight: 500;
}

.wallet-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.wallet-info {
    background: rgba(233, 69, 96, 0.15);
    padding: 12px 25px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.95rem;
    border: 1px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #e94560 0%, #d63447 100%);
    border-color: #e94560;
    box-shadow: 0 5px 25px rgba(233, 69, 96, 0.5);
}

/* Section Styles */
.section {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e94560;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #16213e;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.05rem;
}

/* Form Styles */
.form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #16213e;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.88rem;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #e94560 0%, #d63447 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #533483 0%, #7b2cbf 100%);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(123, 44, 191, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #06a77d 0%, #05b584 100%);
    box-shadow: 0 4px 15px rgba(6, 167, 125, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(6, 167, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #d62828 0%, #c1121f 100%);
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(214, 40, 40, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Card Styles */
.info-card,
.action-card,
.details-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e5eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3,
.action-card h3 {
    color: #16213e;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-status-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-badge.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.status-badge.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #e1e5eb;
    font-size: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #16213e;
    font-weight: 600;
}

/* Grid Layouts */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lawyer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.view-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Statistics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #e94560 0%, #d63447 100%);
    color: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 500;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.client-stats-card {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe3e8 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #e94560;
}

.client-stats-card h3 {
    color: #16213e;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Status Messages */
.status {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 420px;
    z-index: 1000;
}

.status-message {
    background: white;
    border-left: 5px solid #28a745;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.4s ease;
    font-weight: 500;
}

.status-message.error {
    border-left-color: #dc3545;
    background: #fff5f5;
    color: #721c24;
}

.status-message.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
    color: #856404;
}

.status-message.info {
    border-left-color: #2196f3;
    background: #e3f2fd;
    color: #0d47a1;
}

.status-message.success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: #fff;
    margin: 8px 0;
    font-size: 0.95rem;
}

.contract-address {
    color: #e94560;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 25px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .navigation {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .nav-btn {
        width: 100%;
    }

    .wallet-section {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-grid,
    .lawyer-sections,
    .view-sections {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .status {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-card:hover {
    animation: pulse 2s ease infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #16213e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e94560 0%, #d63447 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d63447 0%, #c1121f 100%);
}