@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Login Panel */
.ionm-login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 0;
    margin: 0;
}

.ionm-login-container {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.ionm-login-title {
    font-size: 36px;
    font-weight: 700;
    color: #00d2ff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    margin-bottom: 20px;
}

.ionm-login-subtitle {
    font-size: 18px;
    color: #d1e8ff;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ionm-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Panel */
.ionm-panel {
    min-height: 100vh;
    margin: 0;
    padding: 40px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 0;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.ionm-panel-header {
    text-align: center;
    margin-bottom: 50px;
}

.ionm-panel-title {
    font-size: 42px;
    font-weight: 700;
    color: #00d2ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    margin: 0;
}

.ionm-panel-subtitle {
    font-size: 20px;
    color: #d1e8ff;
    margin-top: 15px;
    opacity: 0.9;
}

.ionm-panel-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.ionm-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-radius: 15px 15px 0 0;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.ionm-table-rows {
    margin-top: 10px;
}

.ionm-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.ionm-table-row:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ionm-input, .ionm-select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ionm-input:focus, .ionm-select:focus {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    outline: none;
}

.ionm-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.9) url('data:image/svg+xml;utf8,<svg fill="#00d2ff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 15px center;
    background-size: 12px;
    cursor: pointer;
}

.ionm-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ionm-btn-login {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
}

.ionm-btn-login:hover {
    background: linear-gradient(135deg, #3a7bd5, #2a5298);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
}

.ionm-btn-add {
    background: linear-gradient(135deg, #00ff99, #00cc99);
    color: #fff;
}

.ionm-btn-add:hover {
    background: linear-gradient(135deg, #00cc99, #009966);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.4);
}

.ionm-btn-submit {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
}

.ionm-btn-submit:hover {
    background: linear-gradient(135deg, #3a7bd5, #2a5298);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
}

.ionm-btn-logout {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.ionm-btn-logout:hover {
    background: linear-gradient(135deg, #ff4757, #e63946);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

.ionm-btn-remove {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.ionm-btn-remove:hover {
    background: linear-gradient(135deg, #ff4757, #e63946);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

.ionm-panel-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 20px 0;
}

.ionm-usage-section {
    margin: 20px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none; /* Varsayılan olarak gizli */
}

.ionm-usage-title {
    font-size: 24px;
    color: #00d2ff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ionm-usage-section input {
    margin-bottom: 20px;
}

.ionm-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.ionm-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #00d2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ionm-login-container, .ionm-panel {
        padding: 20px;
        margin: 0;
    }
    .ionm-table-header, .ionm-table-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .ionm-panel-title, .ionm-login-title {
        font-size: 32px;
    }
    .ionm-panel-actions {
        flex-direction: column;
    }
}