/* frontend.css */

.fdk-tambah-btn-container {
    margin-bottom: 0px;
}

.fdk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}


.fdk-btn:disabled {
    background-color: #cbd5e1 !important;
    cursor: not-allowed;
    color: #475569;
}

.fdk-btn-primary {
    background-color: #2563eb;
    color: #fff;
}
.fdk-btn-primary:hover {
    background-color: #1d4ed8;
}

.fdk-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #258f00 !important;
    color: #fff !important;
    width: 100%;
    padding: 5px !important;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #258f00 !important;
    cursor: pointer;
    box-shadow: 0 8px 24px -6px rgba(34,197,94,0.4);
    transition: all 0.2s;
}

input[name="nama"] {
    border: 1px solid #ccc !important;
    border-radius: 6px;
	width: 100%;
}

@media (min-width: 768px) {
    .fdk-btn-whatsapp {
        width: auto;
    }
}
.fdk-btn-whatsapp:hover {
    background-color: #258f00 !important;
    box-shadow: 0 12px 32px -8px rgba(34,197,94,0.6) !important;
    transform: translateY(-2px) !important;
}

.fdk-form-container {
    max-width: 1200px;
	width: 540px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0px 0px 18px -8px rgb(154 154 154);
}

.fdk-row {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fdk-row-2 {
    flex-direction: row;
    gap: 24px;
}
.fdk-row-2 .fdk-field {
    flex: 1;
}

@media (max-width: 768px) {
    .fdk-form-container {
        padding: 30px;
        border-radius: 16px;
		width: 350px;
    }
    .fdk-row-2 {
        flex-direction: column;
        gap: 32px;
    }
}

.fdk-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fdk-field label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.fdk-required {
    color: #ef4444;
}

.fdk-input {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #dcdfe8;
    border-radius: 12px;
    font-size: 14px;
    color: #171c1f;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}



.fdk-input:focus {
    outline: none;
    border-color: #004ac6;
    box-shadow: 0 0 0 4px rgba(180, 197, 255, 0.3);
}

.fdk-input[readonly] {
    background: #f0f4f8;
    color: #434655;
    border-color: transparent;
    cursor: not-allowed;
	padding-left: 10px;
}

/* Phone Group */
.fdk-phone-input-group {
    display: flex;
    position: relative;
}

.fdk-country-dropdown-wrapper {
    position: relative;
    display: flex;
	margin-right: 5px;
}

.fdk-country-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: #f0f4f8;
    border: 1.5px solid #dcdfe8;
    border-right: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s;
}

.fdk-phone-input {
    border-radius: 0 12px 12px 0;
    flex: 1;
}

.fdk-country-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 50;
    margin-top: 4px;
}


@media (max-width: 480px) {
    .fdk-country-panel {
        width: 280px;
    }
}

.fdk-country-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.fdk-country-list {
    max-height: 250px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fdk-country-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fdk-country-list li:hover {
    background: #f1f5f9;
}

/* Success */
.fdk-success-box {
    text-align: center;
    padding: 30px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
}

.fdk-success-icon {
    font-size: 40px;
    color: #22c55e;
    margin-bottom: 10px;
}

/* Table */
.fdk-table-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 0px;
}

.fdk-table-toolbar {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
}

.fdk-table-toolbar .fdk-input {
    width: 260px;
	border: 1px solid #ddd;
    padding: 5px;
}

@media (max-width: 768px) {
    .fdk-table-toolbar {
        justify-content: stretch;
    }
    .fdk-table-toolbar .fdk-input {
        width: 100%;
    }
}

.fdk-table-wrapper {
    overflow-x: auto;
}

.fdk-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.fdk-table th, .fdk-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    color: #334155;
}

.fdk-table th {
    background: #f1f5f9;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.fdk-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.fdk-table tbody tr:hover {
    background: #f8fafc;
}

.fdk-actions a {
    text-decoration: none;
    color: #64748b;
    margin-right: 0px;
}

.fdk-actions a:hover {
    color: #2563eb;
}

.fdk-actions a.fdk-delete-btn:hover {
    color: #ef4444;
}
