body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px 0;
    color : black;
}

.converter-container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.title {
    text-align: center;
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.binary-input {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    min-width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.binary-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.convert-btn {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.convert-btn:hover {
    background: linear-gradient(135deg, #00b894, #00a085);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 212, 170, 0.4);
}

.conversion-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-bottom: 30px;
    background: transparent;
}

.conversion-table td, .conversion-table th {
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-row td {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.binary-row td {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.power-row td {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.value-row td {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.result-row td {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    font-size: 18px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.separator-row td {
    height: 5px;
    background: linear-gradient(90deg, #fd79a8, #fdcb6e, #74b9ff);
}

.empty-cell {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    opacity: 0.3;
}

.result-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.result-text {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.copy-btn, .reset-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-btn:hover, .reset-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-2px);
}

.owner-text {
    text-align: center;
    font-size: 14px;
    color: #636e72;
    margin-top: 30px;
    font-weight: 500;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.table-container {
    overflow-x: auto;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.calculation-highlight {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e) !important;
    color: #2d3436 !important;
    font-weight: 800 !important;
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.binary-input::placeholder {
    color: #74b9ff;
    opacity: 0.7;
}

.conversion-step {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .converter-container {
        margin: 10px;
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .binary-input {
        min-width: 250px;
    }
    
    .result-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}