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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0A0F1E;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(72, 149, 239, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.brand {
    text-align: center;
    margin-bottom: 40px;
}

.brand h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #7877C6 0%, #4895EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.brand p {
    color: #8B92A7;
    font-size: 16px;
}

.card {
    background: rgba(18, 23, 41, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 20px;
    color: #FFFFFF;
    margin: 0;
}

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

.create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.input-field, .select-field {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 36, 56, 0.5);
    border-radius: 10px;
    font-size: 15px;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #6B7280;
}

.input-field:focus, .select-field:focus {
    outline: none;
    border-color: #4895EF;
    background: rgba(30, 36, 56, 0.8);
    box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.15);
}

.select-field {
    cursor: pointer;
}

.btn-primary {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #7877C6 0%, #4895EF 100%);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::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;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(72, 149, 239, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-card {
    background: rgba(30, 36, 56, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: rgba(72, 149, 239, 0.3);
    background: rgba(30, 36, 56, 0.7);
}

.address-email {
    font-size: 18px;
    font-weight: 600;
    color: #4895EF;
    margin-bottom: 12px;
    word-break: break-all;
}

.address-info {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    color: #8B92A7;
    font-size: 14px;
}

.address-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view {
    background: linear-gradient(135deg, #7877C6 0%, #4895EF 100%);
    color: white;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 149, 239, 0.3);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8B92A7;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    line-height: 1.6;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-back {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.inbox-title {
    flex: 1;
}

.inbox-title h1 {
    font-size: 28px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.email-address {
    color: #4895EF;
    font-size: 16px;
    font-weight: 500;
    word-break: break-all;
}

.emails-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-card {
    background: rgba(30, 36, 56, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.email-card:hover {
    border-color: rgba(72, 149, 239, 0.3);
}

.email-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 3px solid #4895EF;
}

.email-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #C5CAD6;
    font-size: 14px;
}

.email-meta strong {
    color: #FFFFFF;
    font-weight: 600;
}

.email-body {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #C5CAD6;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 420px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}

.notification::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: rgba(255, 255, 255, 0.98);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.25), 
                0 0 0 1px rgba(16, 185, 129, 0.1);
}

.notification-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.notification-error {
    background: rgba(255, 255, 255, 0.98);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 8px 24px -4px rgba(239, 68, 68, 0.25),
                0 0 0 1px rgba(239, 68, 68, 0.1);
}

.notification-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.notification-info {
    background: rgba(255, 255, 255, 0.98);
    color: #2563EB;
    border: 1px solid rgba(72, 149, 239, 0.2);
    box-shadow: 0 8px 24px -4px rgba(72, 149, 239, 0.25),
                0 0 0 1px rgba(72, 149, 239, 0.1);
}

.notification-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234895ef'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .inbox-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .address-info {
        flex-direction: column;
        gap: 8px;
    }

    .notification {
        min-width: auto;
        max-width: calc(100vw - 48px);
    }
}
